package com.kuqi.blog.service;

import com.kuqi.blog.vo.Result;
import com.kuqi.blog.vo.params.ArticleParam;
import com.kuqi.blog.vo.params.PageParams;
import org.springframework.stereotype.Service;

/**
 * @author:kuqi
 * @createTime:2021/12/5 16:38
 * @description:
 */

public interface ArticleService {
    /**
     * 分页查询 文章列表
     * @param pageParams
     * @return
     */
    Result listArticles(PageParams pageParams);

    Result hotArticle(int limit);

    Result newArticles(int limit);

    Result listArchives();

    /**
     * 查看文章详情
     * @param articleId
     * @return
     */
    Result findArticleById(Long articleId);

    /**
     * 发布文章接口
     * @param articleParam
     * @return
     */
    Result publish(ArticleParam articleParam);
}
